package cn.sczc.jh.client.mapper.sys;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.sczc.jh.client.entity.User;
import cn.sczc.jh.client.entity.UserRoleRef;
import cn.sczc.jh.client.vo.UserVo;

public interface UserMapper extends BaseMapper<User> {

	List<UserVo> getUserByParams(Page<UserVo> page, @Param("params") Map<String, Object> params);

	int addUserRoleRef(UserRoleRef userRoleRef);

	int removeUserRoleRef(Long userId);

	UserVo getUser(@Param("username") String username, @Param("password") String password);

	int batchAddUserRoleRef(@Param("list")List<UserRoleRef> list);

	User getUserByAccount(@Param("username") String username);

}
